package com.syswin.lhztest.strategy;

/**
 * vip策略
 * @author:lhz
 * @date:2018/11/14 17:34
 */
//@Service
public class VipDiscountStrategy implements DiscountStrategy {
    @Override
    public String type() {
        return "vip";
    }

    /**
     * vip 9折
     * @param cost
     * @return
     */
    @Override
    public double discount(double cost) {
        return cost * 0.9;
    }
}
